home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / fs / buf.h.D next >
Text File  |  1990-07-25  |  3KB  |  53 lines

  1. *** /tmp/,RCSt1022202    Wed Jul 25 13:48:34 1990
  2. --- buf.h    Mon Jul 23 10:35:24 1990
  3. ***************
  4. *** 27,31 ****
  5.     struct buf *b_hash;        /* used to link bufs on hash chains */
  6.     block_nr b_blocknr;        /* block number of its (minor) device */
  7. !   dev_nr b_dev;            /* major | minor device where block resides */
  8.     char b_dirt;            /* CLEAN or DIRTY */
  9.     char b_count;            /* number of users of this buffer */
  10. --- 27,31 ----
  11.     struct buf *b_hash;        /* used to link bufs on hash chains */
  12.     block_nr b_blocknr;        /* block number of its (minor) device */
  13. !   dev_t b_dev;            /* major | minor device where block resides */
  14.     char b_dirt;            /* CLEAN or DIRTY */
  15.     char b_count;            /* number of users of this buffer */
  16. ***************
  17. *** 47,51 ****
  18.   EXTERN struct buf *front;    /* points to least recently used free block */
  19.   EXTERN struct buf *rear;    /* points to most recently used free block */
  20. ! EXTERN int bufs_in_use;        /* # bufs currently in use (not on free list) */
  21.   
  22.   /* When a block is released, the type of usage is passed to put_block(). */
  23. --- 47,51 ----
  24.   EXTERN struct buf *front;    /* points to least recently used free block */
  25.   EXTERN struct buf *rear;    /* points to most recently used free block */
  26. ! EXTERN int bufs_in_use;        /* # bufs currently in use (not on free list)*/
  27.   
  28.   /* When a block is released, the type of usage is passed to put_block(). */
  29. ***************
  30. *** 52,61 ****
  31.   #define WRITE_IMMED        0100    /* block should be written to disk now */
  32.   #define ONE_SHOT           0200    /* set if block not likely to be needed soon */
  33. ! #define INODE_BLOCK        0 + WRITE_IMMED         /* inode block */
  34. ! #define DIRECTORY_BLOCK    1 + WRITE_IMMED         /* directory block */
  35. ! #define INDIRECT_BLOCK     2 + WRITE_IMMED         /* pointer block */
  36. ! #define I_MAP_BLOCK        3 + WRITE_IMMED + ONE_SHOT     /* inode bit map */
  37. ! #define ZMAP_BLOCK         4 + WRITE_IMMED + ONE_SHOT     /* free zone map */
  38. ! #define ZUPER_BLOCK        5 + WRITE_IMMED + ONE_SHOT     /* super block */
  39.   #define FULL_DATA_BLOCK    6                   /* data, fully used */
  40. ! #define PARTIAL_DATA_BLOCK 7                  /* data, partly used */
  41. --- 52,62 ----
  42.   #define WRITE_IMMED        0100    /* block should be written to disk now */
  43.   #define ONE_SHOT           0200    /* set if block not likely to be needed soon */
  44. ! #define INODE_BLOCK       (0 + MAYBE_WRITE_IMMED)     /* inode block */
  45. ! #define DIRECTORY_BLOCK   (1 + MAYBE_WRITE_IMMED)     /* directory block */
  46. ! #define INDIRECT_BLOCK    (2 + MAYBE_WRITE_IMMED)     /* pointer block */
  47. ! #define I_MAP_BLOCK       (3 + WRITE_IMMED + ONE_SHOT)     /* inode bit map */
  48. ! #define ZMAP_BLOCK        (4 + WRITE_IMMED + ONE_SHOT)     /* free zone map */
  49. ! #define ZUPER_BLOCK       (5 + WRITE_IMMED + ONE_SHOT)     /* super block */
  50.   #define FULL_DATA_BLOCK    6                   /* data, fully used */
  51. ! #define PARTIAL_DATA_BLOCK 7                  /* data, partly used*/
  52.